package com.yuantu.judiciary.controller;

import com.yuantu.judiciary.annotation.Log;
import com.yuantu.judiciary.common.Response;
import com.yuantu.judiciary.common.ResponseFactory;
import com.yuantu.judiciary.model.form.DiscountCodeForm;
import com.yuantu.judiciary.model.form.DiscountCodeStatusForm;
import com.yuantu.judiciary.model.vo.*;
import com.yuantu.judiciary.service.IDiscountCodeService;
import com.yuantu.judiciary.service.ISysPlatformOperateLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.web.PageableDefault;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 邀请码模块
 *
 * @author syw
 * @since 2023-08-17
 **/
@RestController
@RequestMapping("/sys/platform/log")
@Api(tags = "系统管理端日志模块")
@RequiredArgsConstructor
public class SysPlatformOperateLogController extends BaseController {


    private final ISysPlatformOperateLogService operateLogService;


    @ApiOperation(value = "系统管理日志列表")
    @GetMapping("/list")
    public Response<PageVO<SysPlatformOperateLogVO>> sysPlatformLogList(@PageableDefault(sort = "createTime", direction = Sort.Direction.DESC) Pageable pageable,
                                                                        @RequestParam String param) {
        return ResponseFactory.okResponse(operateLogService.sysPlatformLogList(param, pageable));
    }




}
